/* 
 * Curridabat Ciudad Dulce - Prototype Styles
 * Based on Brand Book 2023
 */

@import url('https://fonts.googleapis.com/css2?family=Biryani:wght@300;400;600;700;800;900&family=Verdana&display=swap');

:root {
    /* Paleta Primaria */
    --naranja-mariola: #FF8200;
    --gris-urbano: #425563;

    /* Paleta Secundaria */
    --rojo-amapola: #E0004D;
    --rojo-higueron: #A6093D;
    --azul-poro: #00A3E0;
    --azul-heliconius: #0076A8;
    --verde-cedro: #6CC24A;
    --verde-guayaba: #48A548;
    --naranja-copey: #FE5000;

    /* Neutrals & UI */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --text-dark: #2C3E50;
    --text-light: #F8F9FA;
    --success: #6CC24A;
    --danger: #E0004D;
    --warning: #FFC107;

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(66, 85, 99, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Verdana', sans-serif;
    /* Fallback body font per brand book */
    font-size: 16px;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Biryani', sans-serif;
    font-weight: 800;
    /* ExtraBold */
    color: var(--gris-urbano);
}

/* ===== KR ===== */
/* ===== TEXTOS ===== */
.brand-text {
    color: #ff7a00;
}

.brand-text:hover {
    text-decoration: underline;
}
/* ===== KR END ===== */

/* --- Layout --- */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

/* --- Login Page Specifics --- */
.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.login-image {
    flex: 1.2;
    background: linear-gradient(135deg, var(--naranja-mariola), var(--naranja-copey));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Abstract Hexagon Pattern for Background */
.hex-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: slide 60s linear infinite;
}

.login-form-wrapper {
    flex: 0.8;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    /* --- KR --- */
    /*box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 10;*/
}

/* --- Components --- */

/* Buttons */
/* ===== KR ===== */
/* ===== BOTONES ===== */
.btn-primary {
    background-color: #ff7a00 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.9rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.btn-primary:hover {
    background-color: #e96d00 !important;
}
/* ===== KR END ===== */

.btn-secondary {
    background-color: var(--gris-urbano);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #2C3E50;
}

/* Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gris-urbano);
}

/* KR */
.form-control {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border-radius: 10px !important;
    border: 1px solid #ddd !important;
    font-size: 1rem !important;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ff7a00 !important;
    box-shadow: 0 0 0 2px rgba(255,122,0,0.2) !important;
}
/* KR END */

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 1rem;
}

/* Logo CSS Construction */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.isotipo {
    width: 60px;
    height: 60px;
    background-color: var(--naranja-mariola);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inner patterns to crudely simulate fingerprint/nature */
.isotipo::after {
    content: '';
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 30% 30%, transparent 40%, var(--white) 41%, var(--white) 50%, transparent 51%);
    border-radius: 50%;
    opacity: 0.5;
}

.logotipo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logotipo-main {
    font-family: 'Biryani', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--gris-urbano);
}

.logotipo-sub {
    font-family: 'Biryani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--gris-urbano);
    text-transform: uppercase;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.text-xs {
    font-size: 0.8rem;
}

.color-gray {
    color: #777;
}

.w-100 {
    width: 100%;
}

.flex-column {
    flex-direction: column;
}

.d-none {
    display: none;
}

/* Dashboard Sidebar */
.sidebar {
    width: 260px;
    background: var(--gris-urbano);
    color: var(--white);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar .logo-container .logotipo-main,
.sidebar .logo-container .logotipo-sub {
    color: var(--white);
}

.nav-links {
    list-style: none;
    margin-top: 3rem;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #cbd5e0;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--naranja-mariola);
    padding-left: 1.5rem;
}

.nav-icon {
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

/* Animations */
@keyframes slide {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100% 100%;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Dashboard Specifics --- */

.dashboard-header {
    background-color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.header-left {
    font-family: 'Biryani', sans-serif;
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 400;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-separator {
    width: 1px;
    height: 40px;
    background-color: #ccc;
}

.header-title-group {
    display: flex;
    flex-direction: column;
}

.header-system-title {
    font-family: 'Verdana', sans-serif;
    font-weight: 700;
    color: var(--gris-urbano);
    font-size: 1.1rem;
}

.header-system-subtitle {
    font-family: 'Verdana', sans-serif;
    color: #fca000;
    font-size: 1rem;
}

.btn-user {
    background-color: #3b7ddd;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.btn-user:hover {
    background-color: #2e62b0;
}

.dashboard-nav-container {
    background-color: transparent;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.dashboard-nav {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 0.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.dash-nav-link {
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.dash-nav-link:hover {
    color: var(--naranja-mariola);
    background-color: #fff9f0;
    transform: translateY(-1px);
}

.dash-nav-link.active {
    background: linear-gradient(135deg, var(--naranja-mariola) 0%, #ffad33 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.dash-nav-link.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.4);
}

.dash-nav-link i {
    font-size: 1rem;
}

.header-watermark {
    position: absolute;
    right: 20%;
    top: 0;
    height: 100%;
    width: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='%23e9ecef'%3E%3Cpath d='M50 0C22.4 0 0 22.4 0 50s22.4 50 50 50 50-22.4 50-50S77.6 0 50 0zm0 90c-22.1 0-40-17.9-40-40S27.9 10 50 10s40 17.9 40 40-17.9 40-40 40z'/%3E%3C/svg%3E");
    opacity: 0.3;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* --- Tramites Page Specifics (Modern Redesign) --- */

.page-title {
    font-family: 'Biryani', sans-serif;
    font-weight: 800;
    color: var(--gris-urbano);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
}

.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 4px;
    background: var(--naranja-mariola);
    border-radius: 4px;
}

.filters-container {
    background-color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.filters-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    color: var(--gris-urbano);
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 1rem;
}

.filters-header i {
    color: var(--naranja-mariola);
    font-size: 1.4rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.8rem;
    color: #8898aa;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input {
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #f8f9fe;
    transition: all 0.2s;
}

.filter-input:focus {
    background-color: #fff;
    border-color: var(--naranja-mariola);
    box-shadow: 0 0 0 3px rgba(255, 130, 0, 0.1);
    outline: none;
}

.filters-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-search {
    background: linear-gradient(135deg, var(--naranja-mariola), var(--naranja-copey));
    color: white;
    padding: 0.75rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 130, 0, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 130, 0, 0.4);
}

.btn-clear {
    background-color: #f6f9fc;
    color: #8898aa;
    padding: 0.75rem 2.5rem;
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-clear:hover {
    background-color: #e9ecef;
    color: var(--text-dark);
}

.results-container {
    background-color: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 3rem;
    overflow: visible;
}

.table-header-title {
    display: none;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-size: 0.9rem;
}

.table thead th {
    background-color: transparent;
    border: none;
    color: #8898aa;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 0 1.5rem;
}

.table tbody tr {
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border-radius: 8px;
}

.table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.table td {
    padding: 1.25rem 1.5rem;
    border: none;
    background-color: var(--white);
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

.table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.table tbody tr:nth-of-type(odd) {
    background-color: var(--white);
}

.badge {
    padding: 0.35em 0.8em;
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-success {
    background-color: rgba(45, 206, 137, 0.1);
    color: #2dce89;
}

.badge-warning {
    background-color: rgba(251, 99, 64, 0.1);
    color: #fb6340;
}

.text-muted {
    color: #8898aa !important;
}

.font-weight-bold {
    font-weight: 600 !important;
}

.link-details {
    color: var(--naranja-mariola);
    font-weight: 700;
    position: relative;
    padding-bottom: 2px;
}

.link-details::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--naranja-mariola);
    transition: width 0.3s;
}

.link-details:hover::after {
    width: 100%;
}

.btn-resend {
    background-color: #fff;
    color: var(--azul-poro);
    border: 1px solid var(--azul-poro);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-resend:hover {
    background-color: var(--azul-poro);
    color: #fff;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.d-none {
    display: none !important;
}

.details-row td {
    padding: 0 !important;
    border: none !important;
}

.details-content {
    background-color: #f8f9fa;
    padding: 1.5rem;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border: 1px solid #e9ecef;
    border-top: none;
    margin-top: -5px;
    position: relative;
    z-index: 9;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item strong {
    color: #8898aa;
    font-size: 0.8rem;
    font-weight: 600;
}

.detail-item span {
    color: var(--gris-urbano);
    font-size: 0.9rem;
    font-weight: 500;
}

.link-download {
    color: var(--naranja-mariola);
    font-weight: 600;
    text-decoration: none;
}

.link-download:hover {
    text-decoration: underline;
}

.row-expanded td:first-child,
.row-expanded td:last-child {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background-color: #fff;
    color: #8898aa;
    font-weight: 600;
    transition: all 0.2s;
}

.page-item.active .page-link {
    background-color: var(--naranja-mariola);
    border-color: var(--naranja-mariola);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 130, 0, 0.3);
}

.page-link:hover:not(.active) {
    background-color: #f6f9fc;
    color: var(--gris-urbano);
}

.btn-back {
    background-color: #337ab7;
    color: white;
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Estado de Cuenta Page Specifics --- */

.tabs-container {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 0;
    gap: 1rem;
    padding-bottom: 1px;
}

.tab-button {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    font-weight: 700;
    color: #8898aa;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'Verdana', sans-serif;
    font-size: 0.95rem;
    outline: none;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--naranja-mariola), var(--naranja-copey));
    transition: width 0.3s ease;
    border-radius: 3px;
}

.tab-button:hover {
    color: var(--gris-urbano);
}

.tab-button.active {
    color: var(--naranja-mariola);
    background: transparent;
}

.tab-button.active::after {
    width: 100%;
}

.tab-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    border: none;
    margin-top: -2px;
}

.tab-content .table-bordered {
    border: none;
}

.tab-content .table-bordered th {
    background-color: #f6f9fc !important;
    color: #8898aa;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none !important;
    padding: 1rem !important;
}

.tab-content .table-bordered td {
    border-top: 1px solid #e9ecef !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle;
    padding: 1rem !important;
    font-size: 0.9rem;
}

.actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.btn-action {
    border: none;
    padding: 0.8rem 2.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 220px;
    text-align: center;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-action:last-child {
    background: linear-gradient(135deg, var(--verde-cedro) 0%, #2dce89 100%);
    color: white;
}

.btn-action:first-child {
    background: white;
    color: var(--azul-poro);
    border: 2px solid var(--azul-poro);
}

.btn-action:first-child:hover {
    background-color: #f4fcfc;
}

.btn-disabled-look {
    opacity: 0.6;
    cursor: not-allowed !important;
    background: #e9ecef !important;
    color: #8898aa !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- Tramites Disponibles (Accordion) --- */

.accordion-container {
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    overflow: visible;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: none;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
}

.accordion-header {
    width: 100%;
    background: white;
    color: var(--gris-urbano);
    padding: 1.2rem 1.5rem;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Biryani', sans-serif;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.accordion-header .header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    color: #ffdbbd;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: color 0.3s;
}

.accordion-header:hover {
    background-color: #fffaf5;
    border-left-color: var(--naranja-mariola);
}

.accordion-header:hover .category-icon {
    color: var(--naranja-mariola);
}

.accordion-header.active {
    background-color: #fffaf5;
    border-left-color: var(--naranja-mariola);
}

.accordion-header.active .category-icon {
    color: var(--naranja-mariola);
}

.toggle-icon {
    color: #cbd5e0;
    transition: transform 0.3s ease, color 0.3s;
}

.accordion-header:hover .toggle-icon {
    color: var(--naranja-mariola);
}

.accordion-header.active .toggle-icon {
    transform: rotate(90deg);
    color: var(--naranja-mariola);
}

.accordion-content {
    background-color: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.open {
    border-top: 1px solid #e9ecef;
}

.tramites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tramites-list li {
    padding: 0.8rem 2rem;
    color: var(--gris-urbano);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    font-weight: 500;
}

.tramites-list li:last-child {
    border-bottom: none;
}

.tramites-list li:hover {
    background-color: white;
    color: var(--naranja-mariola);
    padding-left: 2.5rem;
}

.tramites-list li i {
    color: #adb5bd;
    font-size: 0.8rem;
}

.tramites-list li:hover i {
    color: var(--naranja-mariola);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: var(--off-white);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--gris-urbano);
}

.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-item.text-danger:hover {
    background-color: #fff5f5;
}

.dropdown-item.text-danger i {
    color: var(--danger);
}


/* ============================================================
   RESPONSIVE — Media Queries
   Solo afectan las páginas de login/registro/restablecer.
   El resto del sistema (dashboard, tablas, etc.) no se toca.
   ============================================================ */

/* ── Tablet y móvil (≤ 768px) ── */
@media (max-width: 768px) {

    /* Dos columnas → una sola columna apilada */
    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    /* Panel naranja: banner superior compacto */
    .login-image {
        flex: none;
        width: 100%;
        min-height: 220px;
    }

    /* Textos del panel naranja más pequeños */
    .login-image h1 {
        font-size: 2rem !important;
    }

    .login-image p {
        font-size: 0.95rem !important;
    }

    /* Panel del formulario: ancho completo, padding reducido */
    .login-form-wrapper {
        flex: none;
        width: 100%;
        padding: 2rem 1.5rem;
        justify-content: flex-start;
        min-height: auto;
        overflow-y: visible;
    }

    /* Logo centrado en móvil */
    .logo-container {
        justify-content: center;
    }

    /* Navegación del dashboard: scroll horizontal en móvil */
    .dashboard-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        border-radius: 12px;
        padding: 0.4rem;
    }

    .dash-nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.9rem;
        white-space: nowrap;
    }

    /* Filtros en columna única */
    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filters-actions {
        flex-direction: column;
    }

    .btn-search,
    .btn-clear {
        width: 100%;
        justify-content: center;
    }

    /* Acciones de estado de cuenta en columna */
    .actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-action {
        min-width: unset;
        width: 100%;
    }
}

/* ── Móvil pequeño (≤ 480px) ── */
@media (max-width: 480px) {

    .login-image {
        min-height: 180px;
    }

    .login-image h1 {
        font-size: 1.6rem !important;
    }

    .login-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-control {
        font-size: 0.9rem !important;
        padding: 0.65rem 0.85rem !important;
    }

    .btn-primary {
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
    }

    /* Tabs en móvil pequeño */
    .tabs-container {
        gap: 0;
        overflow-x: auto;
    }

    .tab-button {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .tab-content {
        padding: 1.5rem 1rem;
    }
}
